package org.sss.mapreduce.example;

import org.sss.mapreduce.Partitioner;
import org.sss.mapreduce.datatype.Packable;

/**
 * 
 */
public class SlotPartitioner implements Partitioner {
  public int getPartition(Packable key, Packable value, int numPartitions) {
    return key.slot() % numPartitions;
  }
}
